﻿using UnityEngine;
using System.Collections;

public class danioBala : MonoBehaviour {
	public float danio=10;

	// Use this for initialization
	void Start () {
		Destroy(gameObject,10);
	}

	void OnTriggerEnter(Collider obj){
		if(obj.CompareTag("Player")){
			obj.SendMessage("perderSalud",danio,SendMessageOptions.DontRequireReceiver);
			Destroy(gameObject);
		}
	}
}
